<template>
  <div>666</div>
</template>

<script>
import token from "../../api/token"
  export default {
    methods: {
      socketMsg() {
        //向服务端发送消息
        this.$io.emit('sendMsg', {
          time: new Date()
        })

        //接收服务端相对应的webdata数据
        this.$io.on('refresh', data => {
          console.log(data)
        })
      },

    },
    mounted() {
      this.socketMsg()
    }

  }
</script>

<style>
</style>
